<%--
  Created by IntelliJ IDEA.
  User: 浅汐
  Date: 2021/1/15
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="MySql.goodsManager" %>
<%@ page import="MySql.Introduces" %>
<%@ page import="MySql.introducesManager" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="addintroduces.go">
    <%!
        Introduces introduce=new Introduces();
    %>
    <%
        //            out.println(good.toString());
        String s=request.getParameter("id");
        if(s!=null){
            introduce= introducesManager.getRowById(s);
//            out.print(s+"877");
        }
//            out.println(good.getId());
    %>
    <span style="width:80px;margin-bottom:10px;display: inline-block">id:</span><input type="text" name="id" value="<%=introduce.getId()==null?"":introduce.getId()%>">
    </br>
    <span style="width:80px;margin-bottom:10px;display: inline-block">kind:</span><input type="text" name="kind" value="<%=introduce.getKind()==null?"":introduce.getKind()%>">
    </br>
    <span style="width:80px;margin-bottom:10px;display: inline-block">title:</span><input type="text" name="title" value="<%=introduce.getTitle()==null?"":introduce.getTitle()%>">
    </br>
    <span style="width:80px;margin-bottom:10px;display: inline-block">introduce:</span><input type="text" name="content" value="<%=introduce.getContent()==null?"":introduce.getContent()%>">
    </br>
    <span style="width:80px;margin-bottom:10px;display: inline-block">img:</span><input type="text" name="img" value="<%=introduce.getImg()==null?"":introduce.getImg()%>">
    </br>
    <input type="submit" name="add" value="修改">
</form>
</body>
</html>

